export function saveLocalStorage(datas) {
    window.localStorage.setItem('todoList', JSON.stringify(datas))
}

export function readLocalStorage() {
    if (!window.localStorage.getItem('todoList')) {
        return JSON.stringify([])
    }
    return window.localStorage.getItem('todoList')
}